<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<th:block th:replace="tpl :: common_head()"></th:block>
		<title>用户管理</title>
	</head>
	<body th:with="entrance='/system/user/index'">
		<th:block th:replace="tpl :: common_body(~{::.main-right})">
		<div class="main-right">
			<h1 class="main-right-h1">用户管理</h1>
			<ul class="main-right-tab">
				<li class="selected">用户列表</li>
				<li><a href="0">新增用户</a></li>
			</ul>
			<form method="GET">
				<div class="main-right-search">
					<input type="text" name="name" th:value="${name}" />
					<i class="iconfont icon-search"></i>
				</div>
				<div class="panel">
					<table class="table">
					    <thead>
					      <tr>
					        <th>姓名</th>
					        <th>登陆名</th>
					        <th>手机</th>
					        <th>邮箱</th>
					      </tr> 
					    </thead>
					    <tbody>
					      <tr th:each="obj : ${page.content}" th:object="${obj}">
					        <td th:text="*{name}"></td>
					        <td><a th:href="*{id}" th:text="*{loginName}"></a></td>
					        <td th:text="*{mobile}"></td>
					        <td th:text="*{email}"></td>
					      </tr>
					    </tbody>
					</table>
				</div>
				<div th:replace="tpl :: pagination(${page})"></div>
			</form>
		</div>
		</th:block>
	</body>
</html>